﻿using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Read.Dto
{
    public class RoleDto
    {
        /// <summary>
        /// ID主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(100)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(300)]
        public string? Description { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        [StringLength(100)]
        public string? PermissionName { get; set; }
        public List<int> PermissionId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }
    }
}
